<div id="title">
    <span><?php echo $title ?></span>
    <span style="float: right; font-size: 14px;">
        <a href="<?php echo base_url() ?>admin/add/users" >add user</a>
    </span>
</div>
<?php 
    if($info != '')
    {
        echo '<div class="info">'.urldecode($info).'</div>';
    }    
 ?>

<table width="100%" id="listItmes" border="0" >
    <thead>
        <tr>
            <th align="left">User Name</th>
            <th align="left">First Name</th>
            <th align="left">Last Name</th>
            <th align="left">Date of Birth</th>
            <th align="left">Email</th>
            <th align="left" width="5%">View</th>
            <th align="left" width="5%">Edit</th>
            <th align="left" width="5%">Delete</th>
        </tr>    
    </thead>
    <tbody>
        <?php foreach ($users as $user): ?>
            <tr>
                <td align="left"><?php echo $user['username'] ?></td>
                <td align="left"><?php echo $user['first_name'] ?></td>
                <td align="left"><?php echo $user['last_name'] ?></td>
                <td align="left"><?php echo $user['date_of_birth'] ?></td>
                <td align="left"><?php echo $user['email'] ?></td>
                <td align="left"><a href="<?php echo base_url() ?>admin/view/cities/<?php echo $user['city_id'] ?>" >view</a></td>
                <td align="left"><a href="<?php echo base_url() ?>admin/edit/cities/<?php echo $user['city_id'] ?>" >edit</a></td>
                <td align="left"><a href="<?php echo base_url() ?>admin/delete/cities/<?php echo $user['city_id'] ?>" >delete</a></td>
            </tr>    
        <?php endforeach ?>
    </tbody>    
</table>    





